<template>
  <div class="student">
    <h2>学生姓名：{{ name | mySlice }}</h2>
    <h2>学生性别：{{ sex }}</h2>
    <input type="text" v-fbind="name" />
    <button @click="hello">测试hello方法</button>
  </div>
</template>

<script>
export default {
  name: "Student",
  data() {
    return {
      name: "张三123456",
      sex: "男",
    };
  },
};
</script>

<style scoped>
.student {
  background-color: plum;
  color: white;
}
</style>
